<template>
   <div id="t">
       <el-table
      :data=params.ownershipQueryList
      style="width: 100%">
      <el-table-column
        prop="servicetype.servicetype"
        label="业务类型"
        width="180">
      </el-table-column>
      <el-table-column
        prop="servicestatus.servicestatus"
        label="业务状态"
        width="180">
      </el-table-column>
      <el-table-column
        prop="client.clientname"
        label="申请人">
      </el-table-column>
       <el-table-column
        prop="client.idcard"
        label="身份证号码">
      </el-table-column>

       <el-table-column
        prop="ownership.registertime"
        label="申请时间">
          <template slot-scope="scope">
          <span>{{ scope.row.ownership.registertime | dateFormat }}</span>
        </template>
      </el-table-column>
       <el-table-column
        label="操作" >
        <template  slot-scope="scope">
           <el-button type="primary" @click="detail(scope.row)">详情</el-button>
        </template>
      </el-table-column>
    </el-table>

   </div>
</template>

<script>

export default {
  name:"owner",
    props: ['params'],
      data() {
      return {

       owner:"",
       idcard:"",
       servicenumber:"",
       landnumber:"",
       location:"",
       buildingarea:"",
       buildingstructure:"",
       option: ''
      }
    },
    filters:{
      dateFormat(dataStr){
        var dt = new Date(dataStr);
        var y = dt.getFullYear();
        var m = dt.getMonth();
        if(m<10){
           m="0"+m;
        }
        var d = dt.getDate();
        if(d<10){
           d="0"+d;
        }
        var hh = dt.getHours();
        var mm = dt.getMinutes();
        var ss = dt.getSeconds();
        return y+"-"+m+"-"+d+"  "+hh+":"+mm+":"+ss;
      }
    },
    mounted(){

    },
    methods: {

        detail(data){

        var tab = {id: 'detail', name: '详细信息', view: () => import('@/sa-view/statisticalquery/detail.vue'), params: {ownershipQuery: data} };
	this.sa_admin.showTab(tab);

        }



    }

}
</script>


<style scoped>

</style>
